package com.iefgames.cs.pople;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.mortbay.util.ajax.Continuation;
import org.mortbay.util.ajax.ContinuationSupport;

import com.iefgames.cs.manager.PopleManager;

public class Cs extends Pople {

	@Override
	public boolean isCs() {
		return true;
	}

	@Override
	public void newcomet(HttpServletRequest request, HttpServletResponse response) {
		Continuation continuation = ContinuationSupport.getContinuation(request, null);
		setContinuation(continuation);
		
		setState(State.Online);
		
		setNoCacheHeader(response);
		
		PopleManager.set(this);
	}
	
	public Cs(String uuid) {
		setUuid(uuid);
	}
}
